Skip to content

rdrand: allow(unused_unsafe) when calling __cpuid#770

Merged
newpavlov merged 2 commits intomasterfrom
rdrand/allow-unused-unsafe-on-cpuid
Dec 27, 2025
Merged

rdrand: allow(unused_unsafe) when calling __cpuid#770
newpavlov merged 2 commits intomasterfrom
rdrand/allow-unused-unsafe-on-cpuid

Conversation

@tarcieri
Copy link
Contributor

@tarcieri tarcieri commented Dec 27, 2025

This is currently a release blocker: #769

NOTE: this must've been a very recent change, as it's still marked unsafe on beta: https://doc.rust-lang.org/beta/core/arch/x86_64/fn.__cpuid.html

However, it's safe on nightly: https://doc.rust-lang.org/nightly/core/arch/x86_64/fn.__cpuid.html

I can add a comment similar to the one earlier in the file where there's another allow(unused_unsafe) if that helps:

// TODO(MSRV 1.94): remove allow(unused_unsafe) and the unsafe block.

Edit: added TODO in 558282a

This is currently a release blocker: #769
@tarcieri tarcieri requested review from dhardy and newpavlov December 27, 2025 15:18
@tarcieri tarcieri mentioned this pull request Dec 27, 2025
@newpavlov newpavlov merged commit af7fec1 into master Dec 27, 2025
75 checks passed
@newpavlov newpavlov deleted the rdrand/allow-unused-unsafe-on-cpuid branch December 27, 2025 16:54
takumi-earth pushed a commit to earthlings-dev/getrandom that referenced this pull request Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants